﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZhiAo.WebLib.Data;

namespace ZhiAo.CommonLibrary
{
    public  class LoginHistory
    {
        public static void Login()
        {
            ZhiAo.CoreLibrary.CommonLibrary cmn = new ZhiAo.CoreLibrary.CommonLibrary();
            string sql = "INSERT INTO ECI_LOGIN_HISTORY(GUID,USER_ID,USER_NAME,LOGIN_NO,LOGIN_DATE,CLIENT_OS,CLIENT_IE) VALUES(";
            sql += cmn.SQLQC(UserInfo2.UserId) + cmn.SQLQC(UserInfo2.UserName) + cmn.SQLQC(UserInfo2.LoginNo);
            sql += cmn.SQLQC(DateTime.Now) + cmn.SQLQC("XP") + cmn.SQLQ("IE6");
            sql += ")";

            DBHelper.ExecuteNoneQuery(sql);
        }
    }
}
